/* 页面样式相关存储 */
import {
	defineStore
} from "pinia";

export const usePageStore = defineStore("page", {
	state: () => ({
		hasBottom: false, // 判断是否有底部导航条，有当条的时候content_box的padding-bottom 增加一个导航条的高度
		isCollapse: false // 侧边栏是否折叠
	}),
	actions: {
		setHasBottom(data) {
			this.$patch((state) => {
				state.hasBottom = data;
			});
		},
		setCollapse(data) {
			this.$patch((state) => {
				state.isCollapse = data;
			});
		}
	}
})